package com.example.attempt.mapper;

import com.example.attempt.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TeacherMapper {
    public List<Teacher> queryAll();
    public Teacher queryById(String tid);//根据用户名查询数据
    public Teacher queryByIdAndP(String tid,String tpwd);
    public int getNum();
    public void deleteTeacher(String tid);
    public int addTeacher(Teacher teacher); //添加数据
}
